﻿using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FundamentalsClass
{
    public partial class About : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Assembly assembly = Assembly.GetExecutingAssembly();
            this.VersionBox.Text = assembly.GetName().Version.ToString();
            this.CompanyBox.Text = typeof(About).Assembly.GetAttribute<AssemblyCompanyAttribute>().Company;
            this.CopyrightBox.Text = typeof(About).Assembly.GetAttribute<AssemblyCopyrightAttribute>().Copyright;
            this.DescriptionBox.Text = typeof(About).Assembly.GetAttribute<AssemblyDescriptionAttribute>().Description;
            this.VersionBox.Width = this.VersionBox.Text.Length * 10;
            this.CopyrightBox.Width = this.CopyrightBox.Text.Length * 10;
            this.CompanyBox.Width = this.CompanyBox.Text.Length * 10;
            this.DescriptionBox.Width = this.DescriptionBox.Text.Length * 10;
        }
    }
}
